/**
 *  接口配置映射文件
 */
// export const base_uri = 'http://localhost:8080';

// export const admin_uri = 'http://localhost:4200'

export const base_uri = 'https://portal.catarc.ac.cn/zqy_portalApi';

export const admin_uri = 'https://portal.catarc.ac.cn'

export const article_uri = '/webpages/news.html?id='


export const WebApi = {
    // 登录
    admin: {
        addAdmin: base_uri + '/admin/addAdmin',
        getInfo: base_uri + '/admin/getInfo',
        logOut: base_uri + '/admin/logOut',
        logicDeleteAdmin: base_uri + '/admin/logicDeleteAdmin',
        login: base_uri + '/admin/login',
        queryAdminPage: base_uri + '/admin/queryAdminPage',
        updateAdmin: base_uri + '/admin/updateAdmin'
    },
    // 轮播图
    headImage: {
        addHeadImage: base_uri + '/headImage/addHeadImage',
        logicDeleteHeadImage: base_uri + '/headImage/logicDeleteHeadImage',
        queryAll: base_uri + '/headImage/queryAll',
        updateHeadImage: base_uri + '/headImage/updateHeadImage'
    },
    // 新闻
    news: {
        addNews: base_uri + '/news/addNewsReturnObj',
        getNewsById: base_uri + '/news/getNewsById',
        logicDeleteNews: base_uri + '/news/logicDeleteNews',
        queryNewsPage: base_uri + '/news/queryNewsPage',
        updateNews: base_uri + '/news/updateNews'
    },
    utils: {
        uploadPic: base_uri + '/utils/uploadTinymcePic',
        uploadWangEditorPic: base_uri + '/utils/uploadWangEditorPic',
        proxyHttp: base_uri + '/utils/proxyHttp'
    },
    dss: {
        addCatarcNews: 'https://esb.catarc.ac.cn/catarc-esb/insertPortalNews',
        updateCatarcNews: 'https://esb.catarc.ac.cn/catarc-esb/updatePortalNews',
        delCatarcNews: 'https://esb.catarc.ac.cn/catarc-esb/delPortalNews'

        // addCatarcNews: 'http://124.70.65.249:8881/officeWebsiteNews/insertNews',
        // updateCatarcNews: 'http://124.70.65.249:8881/officeWebsiteNews/updateNews',
        // delCatarcNews: 'http://124.70.65.249:8881/officeWebsiteNews/delNews'
    }
}
